djjsbfjbdsgib
11111
2222
3333
4444
5555
wwqewqewq
<script>11dssddsad111ds
<script>111112131313213

import tabbar from "./pages/common/tabbar/tabbar.vue";
export default {
  components: {223123123
    tabbarsss,
  },
  onLaunch: function () {
    let token = uni.getStorageSync("token");
    let base_login_name = uni.getStorageSync("base_login_name");
    if (token && base_login_name) {
      //存在则关闭启动页进入首页
      // #ifdef APP-PLUS
      plus.navigator.closeSplashscreen();
      // #endif
    } else {
      //不存在则跳转至登录页
      uni.reLaunch({
        url: "/pages/login/login",
        success: () => {
          // #ifdef APP-PLUS
          plus.navigator.closeSplashscreen();
          // #endif
        },
      });
    }
    console.log("App Launch");
    this.hideNativeTabBar();aaa
  },
  onShow: function () {
    console.log("App Show");
    this.hideNativeTabBar();
  },
  onHide: function () {
    console.log("App Hide");
  },
  methods: {
    hideNativeTabBar() {
      // Check if the current page is a TabBar page
      if (this.isTabBarPage()) {
        uni.hideTabBar();
      }
    },
    isTabBarPage() {
      // Logic to determine if the current page is a TabBar page
      // This could be based on the current route or other conditions
      return false; // Replace with actual logic
    },
  },
};
</script>

<style lang="scss">
@import "./uni.scss";
@import "uview-plus/index.scss";
/* H5 兼容 pc 所需 */
/* #ifdef H5 */
@media screen and (min-width: 768px) {
  body {
    overflow-y: scroll;
  }
}
/* #endif */

@font-face {
  font-family: "uni-icon";
  font-weight: normal;
  font-style: normal;
  src: url("./static/font_2225171_8kdcwk4po24.ttf") format("truetype");
}

.uni-icon {
  font-family: "uni-icon";
}
/* #ifndef APP-PLUS-NVUE */
/* uni.css - 通用组件、模板样式库，可以当作一套ui库应用 */
@import "./common/uni.css";
@import "./common/public.scss";

/* H5 兼容 pc 所需 */
/* #ifdef H5 */
@media screen and (min-width: 768px) {
  body {
    overflow-y: scroll;
  }
}

/* 顶栏通栏样式 */
/* .uni-top-window {
	    left: 0;
	    right: 0;
	} */

uni-page-body {
  background-color: #f5f5f5 !important;
  min-height: 100% !important;
  height: auto !important;
  font-size: 32rpx;
  line-height: 48rpx;
}

.uni-top-window uni-tabbar .uni-tabbar {
  background-color: #fff !important;
}

.uni-app--showleftwindow .hideOnPc {
  display: none !important;
}

/* #endif */

/* 以下样式用于 hello uni-app 演示所需 */
page {
  background-color: #fff;
  height: 100%;
  font-size: 28rpx;
  /* line-height: 1.8; */
}

.short-text span {
  display: inline-block;
  vertical-align: top;
}

.fix-pc-padding {
  padding: 0 50px;
}

.uni-header-logo {
  padding: 30rpx;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 10rpx;
}

.uni-header-image {
  width: 100px;
  height: 100px;
}

.uni-hello-text {
  color: #7a7e83;
}

.uni-hello-addfile {
  text-align: center;
  line-height: 300rpx;
  background: #fff;
  padding: 50rpx;
  margin-top: 10px;
  font-size: 38rpx;
  color: #808080;
}

/* #endif*/
</style>
